package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IAlaunchActivityContract;
import com.clouddot.baipai.model.AlaunchActivityModel;
import com.clouddot.baipai.presenter.AlaunchActivityPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class AlaunchActivityModule {

    private IAlaunchActivityContract.IView mView;

    public AlaunchActivityModule(IAlaunchActivityContract.IView view) {
        mView = view;
    }

    @Provides
    public IAlaunchActivityContract.IPresenter providerPresenter() {
        return new AlaunchActivityPresenter(mView, new AlaunchActivityModel(mView.getContext()));
    }
}
